﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace OALPTool
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void Form3_Load(object sender, EventArgs e)
        {
            //DataTable dt = new DataTable();
            //dt.Columns.Add("id", typeof(int));
            //dt.Columns.Add("sum", typeof(int));
            //dt.Columns.Add("product", typeof(string));
            //dt.Rows.Add(1, 2, "milk");
            //dt.Rows.Add(3, 4, "pig");
            //dataGridView0.DataSource = dt;
            //DataGridViewHelper rowMergeView = new DataGridViewHelper(dataGridView0);
            //rowMergeView.Headers.Add(new DataGridViewHelper.TopHeader(1, 2, "总计"));


            //DataTable dt = new DataTable();
            //dt.Columns.Add("1");
            //dt.Columns.Add("2");
            //dt.Columns.Add("3");
            //dt.Columns.Add("4");
            //dt.Rows.Add("中国", "上海", "5000", "7000");
            //dt.Rows.Add("中国", "北京", "3000", "5600");
            //dt.Rows.Add("美国", "纽约", "6000", "8600");
            //dt.Rows.Add("美国", "华劢顿", "8000", "9000");
            //dt.Rows.Add("英国", "伦敦", "7000", "8800");
            //dataGridViewEx2.DataSource = dt;
            //dataGridViewEx2.ColumnHeadersHeight = 40;
            //dataGridViewEx2.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
            //dataGridViewEx2.MergeColumnNames.Add("Column1");
            //dataGridViewEx2.AddSpanHeader(2, 2, "XXXX");
        }
    }
}
